import request from '@/utils/request'

// 危险源分布图评估
export function sourceOfDanger(data) {
    return request({
      url: '/fxfzaqbz/data/sourceOfDanger',
      method: 'post',
      data: data
    })
  }

  // 危险源避让分布图评估
export function destructionAssess(data) {
    return request({
      url: '/fxfzaqbz/data/sourceOfDangerBr',
      method: 'post',
      data: data
    })
  }

    // 地质灾害隐患点分布图评估
export function destructionAssess1(data) {
  return request({
    url: '/fxfzaqbz/data/hazardPoint',
    method: 'post',
    data: data
  })
}

    // 获取图件模板
export function getPicReport(query) {
    return request({
      url: '/map/getTypeNameByType/'+query,
      method: 'get',
    })
  }

  // 上传房屋地震灾害风险评估
export function uploadHouse(data) {
    return request({
      url: '/fxfzaqbz/data/saveSecondDisasters',
      method: 'post',
      data: data
    })
  }